
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class RuleRow extends StatelessWidget{
  final String title;
  final bool isChecked;
  final ValueChanged<bool> onChanged;

  RuleRow(this.title, this.isChecked, this.onChanged);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Expanded(child: Text(title)),
        Checkbox(value: isChecked, onChanged: onChanged)
      ],
    );
  }

}